<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$jige=70;
$html=80;
$js=55;
$ps=75;
$pjs=($html+$js+$ps)/3;
/*
echo "及格线为：$jige<br/>";
echo "HTML分数为：$html<br/>";
echo "JS分数为：$js<br/>";
echo "PS分数为：$ps<br/>";
echo "平均数为：$pjs<br/>";
if($pjs >= $jige){
    echo '及格';
}
else{
    echo "不及格";
}
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
    
        HTML分数为：<?php echo "$html"?><br/><hr/>
        JS分数为：<?php echo "$js"?><br/><hr/>
        PS分数为：<?php echo "$ps"?><br/><hr/>
        平均数为：<?php echo "$pjs"?><br/><hr/>
        及格线为：<?php echo "$jige"?><br/><hr/>
    <?php if($pjs >= $jige){ ?><p>您及格了!</p>
    <?php }else if($pjs < $jige) { ?><p>您不及格!</p><?php }?>
<!--
        您<?php
        if($pjs >= $jige){
    echo "<font style=color:green>及格</font>";
}
else{
    echo "<font style=color:red>不及格</font>";
    
}
?>!
-->
</body>
</html>